package com.moarea.app.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class PropertyUtil {

    private static Properties pres = null;

    static {
        pres = new Properties();
        InputStream is = null;
        try {
            is = PropertyUtil.class.getClassLoader().getResourceAsStream("system.properties");
            pres.load(is);
            is.close();
        } catch (IOException ex) {
            throw new RuntimeException("资源文件导入出错。");
        }
    }

    public static Properties getReportConfig() {
        return pres;
    }

}